using System;
using ShopB2C.Enums;

namespace ShopB2C.Entity {
    [Serializable]
    public class ProductEntity {
        /// <summary>
        /// 无参构造函数
        /// </summary>
        public ProductEntity() { }
        /// <summary>
        /// 商品ID，自增主键
        /// </summary>
        public Int32 ProductId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public String ProductName { get; set; }
        /// <summary>
        /// 副标题
        /// </summary>
        public string SubName { get; set; }
        /// <summary>
        /// 商品简述
        /// </summary>
        public String Description { get; set; }
        /// <summary>
        /// 商品关键字
        /// </summary>
        public String KeyWords { get; set; }
        /// <summary>
        /// 商品价格
        /// </summary>
        public Decimal Price { get; set; }
        /// <summary>
        /// 点击数
        /// </summary>
        public Int32 ClickCount { get; set; }
        /// <summary>
        /// 咨询数/评论数
        /// </summary>
        public Int32 ReplyCount { get; set; }
        /// <summary>
        /// 平均分
        /// </summary>
        public decimal GradeValue { get; set; }
        /// <summary>
        /// 库存数
        /// </summary>
        public int StockCount { get; set; }
        /// <summary>
        /// 销售量
        /// </summary>
        public Int32 SalesCount { get; set; }
        /// <summary>
        /// 咨询数
        /// </summary>
        public Int32 ConsultCount { get; set; }
        /// <summary>
        /// 加入日期
        /// </summary>
        public DateTime AddDateTime { get; set; }
        /// <summary>
        /// 是否为可用状态
        /// </summary>
        public Boolean IsActive { get; set; }
        /// <summary>
        /// 上架日期
        /// </summary>
        public DateTime SaleDateTime { get; set; }
        /// <summary>
        /// 折扣率
        /// </summary>
        public Double DisCount { get; set; }
        /// <summary>
        /// 商品编号/序列号/条码
        /// </summary>
        public string ProductNo { get; set; }
        /// <summary>
        /// 商品图片封面
        /// </summary>
        public string ImageName { get; set; }
        /// <summary>
        /// 关联的商品类别ID
        /// </summary>
        public Int32 ClassId { get; set; }
        /// <summary>
        /// 我的折扣
        /// </summary>
        public double MyDiscount { get; set; }
        /// <summary>
        /// 商品状态
        /// </summary>
        public ProductStatus Status { get; set; }
        /// <summary>
        /// 关联品牌的ID
        /// </summary>
        public int BrandId { get; set; }
        /// <summary>
        /// 品牌名称
        /// </summary>
        public string BrandName { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string ClassifyName { get; set; }
        /// <summary>
        /// 未审核的评论条数
        /// </summary>
        public int UnAuditCommentNum { get; set; }
        /// <summary>
        /// 未审核的咨询条数
        /// </summary>
        public int UnAuditConsultNum { get; set; }
    }
}
